.ant-virtually-model {
  .ant-table-header {
    overflow: hidden !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .ant-table-fixed-left,
  .ant-table-fixed-right {
    bottom: 0;
  }
  .ant-table-bordered.ant-table-fixed-header
    .ant-table-scroll
    .ant-table-header.ant-table-hide-scrollbar
    .ant-table-thead
    > tr:only-child
    > th:last-child {
    border-right-color: #e8e8e8;
  }

  // table {
  //   transition: transform 0.2s ease; /* 过渡效果 */
  // }
  .ant-table-body-inner {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }
  .ant-table-body {
    overflow: hidden !important;
  }
  .scrollbar {
    opacity: 0; /* 初始时不可见 */
    transition: opacity 0.3s ease-in-out; /* 过渡效果 */
  }
  &:hover {
    .scrollbar {
      opacity: 1;
    }
  }
  .resize-table-th {
    > .ant-dropdown-trigger {
      display: none;
    }
    > .ant-table-filter-open {
      display: block !important;
      color: #0077ff !important;
      color: var(--theme-brand6, #0077ff) !important;
    }
    &:hover {
      > .ant-dropdown-trigger {
        display: block;
      }
    }
  }
}

.ant-virtually-def {
  position: relative;
  width: 100%;
  height: 100%;
}
.ant-virtually-absolute {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.ant-virtually-table {
  .ant-table-fixed-right {
    min-height: 38px;
  }
  .ant-table-row-selected {
    background: #e6f7ff;
    background: var(--theme-brand1, #e6f7ff);
  }
  .ant-table-small {
    border: none;
    border-radius: 0;
    .ant-table-header {
      background-color: #f5f6f9 !important;
    }
    .ant-table-thead > tr > th {
      background-color: #f5f6f9 !important;
    }
  }
  .ant-select-dropdown-menu {
    max-height: 280px;
  }
  .ant-table-header {
    background-color: #f5f6f9;
  }
  .ant-table-thead > tr > th {
    background-color: #f5f6f9;
  }
  .ant-table-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 0 !important ;
  }
  .ant-table-fixed-left {
    box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.05) !important;
  }
  .ant-table-fixed-right {
    box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.05) !important;
  }
  .virtually-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    padding-top: 10px;
    padding-right: 8px;
    box-sizing: border-box;
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    z-index: 20;
    .virtually-pagination-slot {
      flex: 1;
    }
  }
  .ant-table-empty .ant-table-body {
    overflow: hidden !important;
  }

  .ant-table th .ant-table-header-column > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    box-sizing: border-box;
    .ant-table-column-sorter {
      position: absolute;
      right: 0;
      top: 5px;
    }
  }
  .ant-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ant-table th {
    white-space: nowrap;
  }
  .ant-table-scroll {
    overflow: hidden !important;
  }
  .ant-table-thead .selection-column {
    text-align: center;
  }
  .ant-table-column-sorter-inner {
    display: none;
  }
  .table-header-sort-asc {
    .ant-table-header-column {
      > div {
        padding-right: 16px;
      }
    }
    .ant-table-column-sorter-inner {
      display: block;
      > .ant-table-column-sorter-up {
        color: #0077ff;
        color: var(--theme-brand6, #0077ff);
      }
    }
  }
  .table-header-sort-desc {
    .ant-table-header-column {
      > div {
        padding-right: 16px;
      }
    }
    .ant-table-column-sorter-inner {
      display: block;
      > .ant-table-column-sorter-down {
        color: #0077ff;
        color: var(--theme-brand6, #0077ff);
      }
    }
  }
  .resize-table-th-have-sorter {
    cursor: pointer;
  }
  .resize-table-th {
    position: relative;
    // > .title {
    //   display: inline-block;
    //   font-size: 12px;
    // }
    // > .sort {
    //   float: right;
    //   font-size: 12px;
    //   line-height: 21px;
    // }
    // text-align: center;
    .ant-table-column-sorter {
      // display: inline-block;
      // .ant-table-column-sorter-inner {
      //   transform: translateY(-2px);
      // }
    }
    .table-draggable-handle {
      height: 100% !important;
      bottom: 0;
      left: -5px;
      z-index: 1000;
      cursor: col-resize;
      touch-action: none;
      position: absolute;
      // &:hover {
      //   background-color: #0077ff;
      // }
    }
  }
}
